* xdisp.c (display_text_line): If the newline (or C-m, in
authorJim Blandy <jimb@redhat.com>
Wed, 19 May 1993 03:27:53 +0000 (03:27 +0000)
committerJim Blandy <jimb@redhat.com>
Wed, 19 May 1993 03:27:53 +0000 (03:27 +0000)
selective-display) has a non-default face, apply that face to the
remainder of the line, so that the fill occupies the entire line.

src/xdisp.c

index 562e10aafbd81350245054103b0181856e751fcb..f37f1d4e976501538b26ae6e3a0bfd4beead7897 100644 (file)
@@ -1836,6 +1836,13 @@ display_text_line (w, start, vpos, hpos, taboffset)
              copy_part_of_rope (p1prev, p1prev, invis_vector_contents,
                                 (p1 - p1prev), current_face);
            }
+#if 1
+         /* Draw the face of the newline character as extending all the 
+            way to the end of the frame line.  */
+         if (current_face)
+           while (p1 < endp)
+             *p1++ = MAKE_GLYPH (' ', current_face);
+#endif
          break;
        }
       else if (c == '\t')
@@ -1862,6 +1869,13 @@ display_text_line (w, start, vpos, hpos, taboffset)
              copy_part_of_rope (p1prev, p1prev, invis_vector_contents,
                                 (p1 - p1prev), current_face);
            }
+#if 1
+         /* Draw the face of the newline character as extending all the 
+            way to the end of the frame line.  */
+         if (current_face)
+           while (p1 < endp)
+             *p1++ = MAKE_GLYPH (' ', current_face);
+#endif
          break;
        }
       else if (dp != 0 && XTYPE (DISP_CHAR_VECTOR (dp, c)) == Lisp_Vector)